package io.github.biezhi.elves.model;

import io.github.biezhi.elves.common.Constants;
import io.github.biezhi.elves.utils.StringUtils;
import lombok.Data;

/**
 * 股东数据对象
 *
 */
@Data
public class Shareholder {
	//企业唯一id
	private String uniqueId;
	//主体身份代码
	private String pripid;
	//企业名称
	private String entname;
	//股东
	private String shareholderName;
	//持股比例
	private String shareholderRatio;
	//认缴出资额（万元）
	private String subscribedCapital = "0";
	//认缴出资日期
	private String subscriptionDate;
	//股东类型
	private String shareholderType;
	//地市id
	private String cityId;
	
	public void setSubscribedCapital(String subscribedCapital){
		subscribedCapital = subscribedCapital.replaceAll(Constants.REPLACE_CN, "");
		subscribedCapital = StringUtils.isNullOrEmpty(subscribedCapital)?"0":subscribedCapital;
		this.subscribedCapital = subscribedCapital;
	}
}